#!/bin/bash

tar cfp /tmp/bak $(find . -type f -name '*.java');

for src in $(egrep -v '#' sources)
do
 tgt=$(echo $src | sed 's%.*/%%')
 pkgclass=$(echo $src | sed 's%/%.%; s%%\.java%;')
 classname=$(echo $src | sed 's%.*/%%; s%%\.java%;')
 if cat $src | sed 's%^package ore\..*%package ore;%' > $tgt
 then
  svn delete $src
  svn add $tgt
 else
  exit 1
 fi
done
